<?php

//include_once "configuration.php";
require_once(sfConfig::get('sf_app_lib_dir').'/common/html/manager/ManagerHTML.php');


require_once(sfConfig::get('sf_app_lib_dir').'/common/constants/images/ConstantsCommonsImages.php');
require_once(sfConfig::get('sf_app_lib_dir').'/common/constants/ConstantsNamePages.php');
require_once(sfConfig::get('sf_app_lib_dir').'/common/constants/ConstantsStyles.php');
require_once(sfConfig::get('sf_app_lib_dir').'/common/constants/ConstantsScript.php');

require_once(sfConfig::get('sf_app_lib_dir').'/common/pages/manager/body/pages/home/ManagerBodyHeader.php');
require_once(sfConfig::get('sf_app_lib_dir').'/common/pages/manager/body/pages/home/ManagerBodyCenter.php');
require_once(sfConfig::get('sf_app_lib_dir').'/common/pages/manager/body/pages/home/ManagerBodyFooter.php');


/**
 * Description of Home
 * Pagina principal de la pagin tengo una cita
 *
 * @author Jhonny
 */
class Home extends ManagerHTML{

    public function __construct() {
        parent::__construct();
    }
    public function toString() {
        //Head
       
        $this->setTitle($this->getName());
        $this->setDefaultMetaDataCharset();
        $this->addStyleTag(ConstantsStyles::$home);
        $this->addScriptTag(ConstantsScript::$home);
        $this->setFavIcon(ConstantsCommonsImages::$pathFavIcon);
        //<link rel="shortcut icon" href="webdata/pages/imagenes/favicon.ico">
        ////////////////////////////////////////////

        /*
         * Header de la pagina web, donde tenemos el menu
         */
        $headerBody = new ManagerBodyHeader();
        $this->setBodyHeader($headerBody);
        //FIN header web


        $centerBody = new ManagerBodyCenter();
        $this->setBodyCenter($centerBody);

        //Footer
        $footerBody = new ManagerBodyFooter();
        $this->setBodyFooter($footerBody);

        return parent::toString();
    }
    /**
     *
     * @return <String>
     */
    private function getName() {
        return ConstantsCommons::$name.' - '.ConstantsNamePages::$home;
    }
}
?>
